<template>
  <div class="h-100" v-loading="loading"></div>
</template>

<script>
import axios from 'axios'

export default {
  name: "load",
  title: "过渡数据",
  data () {
    return {
      activityId: '',
      activity: '',
      loading: false
    }
  },
  mounted () {
    this.getContent()
  },
  methods: {
    getContent () {
      this.loading = true
      this.activityId = this.$getUrlParames('activityId')
      this.$router.replace({name: 'eventdetails', query: {activityId: this.activityId}})
      // axios.post('/mscs/activity/findActivityContentById', this.$paramsConvert({activityId: this.activityId})).then((res) => {
      //   if (res.data.code === 1) {
      //     this.$router.replace({name: 'eventdetails', query: {row: JSON.stringify(res.data.data.data)}})
      //   } else {
      //     this.$message({
      //       showClose: true,
      //       message: `错误信息：${res.data.data}`,
      //       type: 'error'
      //     })

      //   }
      // }).catch((err) => {
      //   this.$message({
      //     showClose: true,
      //     message: `错误信息：${error}`,
      //     type: 'error'
      //   })
      // }).finally(() => {
      //   this.loading = false
      // })

    },
  }
}
</script>
